@extends('User.header')

@section('content')
<div id="loginBox">
    @include('User.Tool.error')
    <h2>
    用户登陆
    </h2>
    <form action="/user/login" method="post">
        <input type="hidden" name="_token" value="{{ csrf_token() }}">
        <input type="text" class="form-control" name="username" placeholder="用户名 ">
        <input type="password" class="form-control" name="password" placeholder="用户密码 ">
        <div class="form-group">
            <input id="code" type="text" name="code" placeholder="验证码">
            <img id="codeImg" src="{{url('getCaptcha')}}" alt="" onclick="this.src='{{url('getCaptcha')}}?'+Math.random()">
        </div>
        <button type="submit" class="pri-btn">登&nbsp;&nbsp;&nbsp;&nbsp;陆</button>
        <div class="form-group">
            <a href="{{url('/forgetIndex')}}">忘记密码</a>&nbsp;
            <a href="{{url('/home/user/registPage')}}">注册</a>
        </div>
    </form>
</div>
@endsection

@section('scriptStyle')
    <script type="text/javascript">
        $(document).ready(function(){
           $("#close").click(function(){
               $(".container").hide();
           })
        });
    </script>
@endsection